$(document).ready(function () {
    $("#msgSendBtn").click(broadcast);
});

function broadcast() {
    $.post("http://www.im.com/data/chat/broadcast", {msg: $("#msg").val()}, function (result) {
        $("#msgResult").html("发送广播消息成功");
    });
}